package wangjg.coco.views;

import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.window.IShellProvider;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;

public class LoginDialog2 extends Dialog {
	private Label lbUserName = null;
	private Text txtUserName = null;
	private Label lbPassword = null;
	private Text txtPassword = null;

	public LoginDialog2(IShellProvider parentShell) {
		super(parentShell);
		// TODO Auto-generated constructor stub
	}

	public LoginDialog2(Shell parentShell) {
		super(parentShell);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected Control createDialogArea(Composite parent) {
		// TODO Auto-generated method stub
		Composite composite = (Composite) super.createDialogArea(parent);
		lbUserName = new Label(composite, SWT.NONE);
		lbUserName.setText("用户名：");
		txtUserName = new Text(composite, SWT.BORDER);
		lbPassword = new Label(composite, SWT.NONE);
		lbPassword.setText("密码：");
		txtPassword = new Text(composite, SWT.BORDER);
		return composite;
	}

}